package guoanmaker.operator.business.service;

import java.util.List;

import javax.transaction.Transactional;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import guoanmaker.operator.business.model.OperatorLoginFriendLink;
import guoanmaker.operator.business.repository.OperatorLoginFriendLinkRepository;

@Service
public class OperatorLoginFriendLinkService implements OperatorLoginFriendLinkServiceInterface {
	@Autowired
	private OperatorLoginFriendLinkRepository operatorLoginFriendLinkRepository;

	@Override
	@Transactional
	public OperatorLoginFriendLink saveFriendLink(OperatorLoginFriendLink operatorLoginFriendLink) {
		// TODO Auto-generated method stub
		return operatorLoginFriendLinkRepository.save(operatorLoginFriendLink);
	}

	@Override
	public List<OperatorLoginFriendLink> getFriendLinkById() {
		// TODO Auto-generated method stub
		return operatorLoginFriendLinkRepository.findAll();
	}

}
